﻿using System;
using System.ComponentModel.Composition;
using System.Web.Mvc;
using System.Web.Security;
using SailHero.Soft.FrameWork.IDomainRepositories.Contracts;
using SailHero.Soft.FrameWork.Models;
using UI.Web.MVC.Models;

namespace UI.Web.MVC.Controllers
{
    [Export(typeof(IController)), ExportMetadata("Name", "Home")]
    public class HomeController : Controller
    {

        [Import]
        public ISys_UserRepository sys_UserRepository { get; set; }


        public ActionResult Index()
        {
            var dd = sys_UserRepository;
            ViewData["Message"] = "欢迎界面!";
            return View();
        }

        [Authorize]
        public ActionResult About()
        {
            return View();
        }

    }
}
